package com.freesky.web.manager.remote.panel;

import com.freesky.common.dao.entity.HomeRotationChart;
import com.freesky.common.pojo.DataTablesResult;
import com.freesky.common.pojo.ZTreeNode;
import com.freesky.common.utils.reponse.JSONResponse;
import com.freesky.common.vo.VOPanelContent;
import com.freesky.web.manager.remote.panel.fallback.HomeRotationChartRemoteFallback;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(name = "emall-provider-zuul", fallback = HomeRotationChartRemoteFallback.class)
public interface HomeRotationChartRemote {
    String ZUUL_URL_PREFIX = "/mysevice/content";


    @PostMapping(value = ZUUL_URL_PREFIX  + "/home/rotation-chart/add")
    JSONResponse add(@RequestBody HomeRotationChart rotationChart);


    @PostMapping(value = ZUUL_URL_PREFIX + "/home/rotation-chart/update")
    JSONResponse update(@RequestBody HomeRotationChart rotationChart );

    @DeleteMapping(value = ZUUL_URL_PREFIX  + "/home/rotation-chart/del/{ids}")
    JSONResponse delete(@PathVariable(value = "ids") int[] ids);
}
